﻿@model RealtyReview.Models.RegisterViewModel
<div class="container">
    <div class="row">
        <div class="main">
            @using (Html.BeginForm("Register", "Account", FormMethod.Post, new { @class = "form-horizontal", role = "form" }))
            {
                @Html.AntiForgeryToken()
                @Html.ValidationSummary(true, "", new { @class = "text-danger" })

                <div class="form-group">
                    @Html.LabelFor(m => m.Email, new { @class = "control-label" })
                    @Html.TextBoxFor(m => m.Email, new { @class = "form-control" })
                </div>
                <div class="form-group">
                    @Html.LabelFor(m => m.Password, new { @class = "control-label" })
                    @Html.PasswordFor(m => m.Password, new { @class = "form-control" })
                </div>
                <div class="form-group">
                    @Html.LabelFor(m => m.ConfirmPassword, new { @class = "control-label" })
                    @Html.PasswordFor(m => m.ConfirmPassword, new { @class = "form-control" })
                </div>
                <button type="submit" class="btn btn btn-primary center-block">Создать аккаунт</button>
            }
        </div>
    </div>
</div>

@section Scripts {
    <script src="@Url.Content("~/libs/jquery-validation/jquery.validate.js")"></script>
    <script src="@Url.Content("~/libs/jquery-validation-unobtrusive/jquery.validate.unobtrusive.js")"></script>
}